CC=gcc
CFLAGS=-Wall -D_GNU_SOURCE

all: vish

run: vish
	./vish

vish: vish.o builtins.o
	$(CC) vish.o builtins.o -o vish

vish.o: vish.c defs.h
	$(CC) -c vish.c $(CFLAGS) -o vish.o

builtins.o: builtins.c defs.h
	$(CC) -c builtins.c $(CFLAGS) -o builtins.o

clean:
	rm -rf *.o
